import request from '@/utils/request'

// 查询家乡印象-作品列表
export function listVideo(query) {
  return request({
    url: '/store/video/list',
    method: 'get',
    params: query
  })
}

// 查询家乡印象-作品详细
export function getVideo(videoId) {
  return request({
    url: '/store/video/queryByIdNoHandle?videoId=' + videoId,
    method: 'get'
  })
}

// 新增家乡印象-作品
export function addVideo(data) {
  return request({
    url: '/store/video',
    method: 'post',
    data: data
  })
}

// 修改家乡印象-作品
export function updateVideo(data) {
  return request({
    url: '/store/video/update',
    method: 'post',
    data: data
  })
}

// 删除家乡印象-作品
export function delVideo(videoIds) {
  return request({
    url: '/store/video/delete',
    method: 'post',
    data: {
      dataId: videoIds
    }
  })
}

export function editStatus(data) {
  return request({
    url: '/store/video/editStatus',
    method: 'post',
    data: data
  })
}

